<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $html->charset(); ?>
        <title><?php echo $this->element('pageTitle') . $title_for_layout; ?></title>
        <?php
        echo $html->meta('icon');

        echo $html->css('default');
        echo $html->css('login');
        echo $html->css('style');
        echo $html->css('jquery/south-street/jquery-ui-1.7.1.custom');
        echo $html->css('jquery-ui');

        // ถ้า browser ผู้ใช้ คือ IE
        if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
            echo $html->css('ie');
            echo $html->css('login_ie');
        }

        echo $javascript->link('prototype');
        echo $javascript->link('jquery/jquery-1.3.2.min');
        echo $scripts_for_layout;
        echo $javascript->link('myscript');
        ?>
        <script type="text/javascript" >
            //ต้องมีคำสั่งนี้เพื่อให้ jQuery ใช้งานกับ javascript framework อื่น ๆ ได้
            var $j = jQuery.noConflict();

            var base = "<?php echo $this->base; ?>";
        </script>
    </head>
    <body>
        <div id="container">
            <?php echo $this->element('header'); ?>
            <div id="wrapper">
                <br />
                <div id="content" class="ui-corner-all">
                    <?php echo $content_for_layout; ?>
                </div>
                <br />
            </div>
            <?php echo $this->element('footer'); ?>
        </div>
        <?php echo $cakeDebug; ?>
        <?php echo $this->element('sql_dump'); ?>
    </body>
</html>